<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Json对象创建</title>
	</head>
	<body>
		<h1>Json对象创建</h1>
		<script>
			person={
				name:'Jack',
				age:20,
				addr:{
					homeAddr:'大同平城区',
					workAddr:'太原小店区',
				}
			};
			alert(person.addr.homeAddr);
			alert(person['age']);
			students=[
			  {
			  	name:'wyr',
			  	age:22
			  },
			  {
			  	name:'css',
			  	age:22
			  }
			];
			alert(students[1].age);
			s={
             "sites": [
                   { "name":"菜鸟教程" , "url":"www.runoob.com" }, 
                   { "name":"google" , "url":"www.google.com" }, 
                   { "name":"微博" , "url":"www.weibo.com" }
                ]
               }
		</script>
	</body>
</html>
